package com.manor.im.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter

/**
 *

 * @date  2020/7/8  14:34
 * @version 1.0
 */
class FriendAddressAdapter (fm: FragmentActivity, private val fragmentList: MutableList<Fragment>) : FragmentStateAdapter(fm) {

    override fun getItemCount(): Int = fragmentList.size

    override fun createFragment(position: Int): Fragment = fragmentList[position]


}
